"use client"; import { useWalletStore } from "@/stores/useWalletStore"; import { Mask } from "antd-mobile"; import { useEffect, useState } from "react"; const ActivityMask = () => { const [visible, setVisible] = useState(false); const wallet = useWalletStore((state) => state.wallet); console.log(`🚀🚀🚀🚀🚀-> in ActivityMask.tsx on 10`, wallet); useEffect(() => { if (wallet?.notice?.lose_score > 0) { setVisible(true); } }, [wallet?.notice?.lose_score]); return ( {/* setVisible(false)}*/} {/*>*/} {/* */} {/**/}
setVisible(false)} >
Um presente
Não tive sorte hoje, Continue com o bom trabalho
presente: {wallet.gift_packet.amount}
); }; export default ActivityMask;